FROM atlassian/jira-software:8.12.2
COPY ./atlassian-agent.jar /opt/atlassian/jira/
COPY mysql-connector-java-5.1.47.jar /opt/atlassian/jira/lib/
COPY server.xml /opt/atlassian/jira/conf/server.xml
RUN echo 'export CATALINA_OPTS="-javaagent:/opt/atlassian/jira/atlassian-agent.jar ${CATALINA_OPTS}"' >> /opt/atlassian/jira/bin/setenv.sh